package com.itheima.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("ap_article")
public class Article {
    @TableId
    private Long id;

    @TableField("title")
    private String title;

    @TableField("author_id")
    private Integer authorId;

    @TableField("author_name")
    private String authorName;

    @TableField("channel_id")
    private Integer channelId;

    @TableField("channel_name")
    private String channelName;

    @TableField("layout")
    private Integer layout;

    @TableField("flag")
    private boolean flag;

    @TableField("images")
    private String images;

    @TableField("labels")
    private String labels;

    @TableField("likes")
    private Integer likes;

    @TableField("collection")
    private Integer collection;

    @TableField("comment")
    private Integer comment;

    @TableField("views")
    private Integer views;

    @TableField("province_id")
    private Integer provinceId;

    @TableField("city_id")
    private Integer cityId;

    @TableField("county_id")
    private Integer countyId;

    @TableField("created_time")
    private Date createdTime;

    @TableField("publish_time")
    private Date publishTime;

    @TableField("sync_status")
    private Integer syncStatus;

    @TableField("origin")
    private Integer origin;

}
